package day01;

import java.io.File;
import java.util.Scanner;

public class Test04 {
    public static void main(String[] args) {
        Scanner scanner = new Scanner(System.in);
        System.out.println("请输入要删除的目录名:");
        String name = scanner.nextLine();

        File dir = new File("./"+name);
        if(dir.exists()){
            dir.delete();
            System.out.println("该目录已删除");
        }else{
            System.out.println("该目录不存在!");
        }

    }
}
